from django.shortcuts import render
from django.http import HttpResponse
from models import Category

def test(request):
    res = Category.objects.all()
    content = ''
    cintent = content+'<html>'
    for item in res:
        content = content + '<li>'+ str(item)+'</li>'
    content = content + '</html>'

    return HttpResponse(content)